var selected_val = document.getElementById(repeatType).value;  //获取选中的项
/**
 * 查重
 */
function fastQueryRepeat(){
    $.ajax({
        type: 'GET',
        url: '/customerController/fastQueryRepeat',
        dataType: "json",
        // contentType: "application/json;charset=utf-8",
        data: {
            type : selected_val,//类型
            checkContent :$.trim($('#checkContent').val()) //获取文本输入框的内容
        },
        success: function (result) {
            if(result.code == '000000'){
                var data = result.data
                for(var i = 0;i<data.length;i++){
                    var html = '';
                    html+=`<li style="display: flex;line-height: 40px">
                       <div class="info-item" style="width: 40%">客户名称：<span class="text">${data[i].name}</span></div>
                       <div class="info-item" style="width: 40%">会员：<span class="text">${data[i].isVip}</span></div>
                       <div class="info-item" style="width: 40%">所在位置：<span class="text">${data[i].place}</span></div>
                       <div class="info-item" style="width: 70%">状态：<span class="text">${data[i].state}</span></div>
                   </li>`
                }
                $('#checkDuplicateList').html(html)
            }else{
                $.alert('请输入内容！')
            }
        },
        error: function(){
            alert('请求失败')
        }
    });
}

